<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <form th:action="@{/function/add}" method="post">
        部门名称:<input type="text" name="zname" ><br>
        所属部门：
        <select name="bid">
            <option value="">请选择</option>
            <option th:each="bumen : ${bumen}"
                    th:value="${bumen.bid}"
                    th:text="${bumen.bname}">
            </option>
        </select><br/>
        <input type="submit" value="确定"/><br/>
    </form>
</body>
</html>